package com.acme;

public class Arrays {
    public static void main(String[] args) {
        int[] array;

        array = new int[5];

        System.out.println("Third element is: " + array[2]);

        for (int i = 0; i < array.length; i++) {
            array[i] = i + 1;
        }

        System.out.println("Length of the array: " + array.length);

        System.out.println(array[5]);
    }
}
